module RunsHelper
  def sort_runs_by_tag name,method,runs,problem,contest, user
    link_to_remote name,:url => {:action => :sort_runs_by,
                :criteria => method,:runs=>runs,:problem => problem,
                    :contest => contest,:user => user}
  end
  def judged_status? status
    config = load_config
    config['status'].values.include? status
  end
  def compile_error_status? status
    config = load_config
    config['status']['ce'] == status
  end
  def ok_status? status
    config = load_config
    config['status']['ok'] == status
  end
end
